import { request } from "./request";

export function isRegister(userPhone) {
  return request({
    url: "/user/isRegister",
    method: "post",
    params: {
      uPhone: userPhone,
    },
  });
}

export function sendMessage(userPhone) {
  return request({
    url: "/user/sendEmail",
    method: "post",
    params: {
      uPhone: userPhone,
    },
  });
}

export function wansendEmail(userPhone) {
  return request({
    url: "/user/wansendEmail",
    method: "post",
    params: {
      uPhone: userPhone,
    },
  });
}

export function completeRegistration(code, uname, uphone, upwd) {
  return request({
    url: "/user/register",
    method: "post",
    params: {
      code,
      uname,
      uphone,
      upwd,
    },
  });
}
